/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.BCDoanhThuBLL;
import edu.nii.qlks.DataTransferObject.BCDoanhThuInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class BCDoanhThuControl {
    BCDoanhThuBLL BaoCaoDoanhThu = new BCDoanhThuBLL();
    
 
    public ArrayList LayDS() throws Exception{
        return BaoCaoDoanhThu.LayDS();
    }
        
    public void Insert(BCDoanhThuInfo baoCaoDoanhThuInfo) throws Exception{
        BaoCaoDoanhThu.Insert(baoCaoDoanhThuInfo);
    }
    
    public void Update(BCDoanhThuInfo baoCaoDoanhThuInfo) throws Exception{
        BaoCaoDoanhThu.Update(baoCaoDoanhThuInfo);
    }
    
    public void Delete(BCDoanhThuInfo baoCaoDoanhThuInfo) throws Exception{
        BaoCaoDoanhThu.Delete(baoCaoDoanhThuInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return BaoCaoDoanhThu.TaoMaTuDong(maGoc, batDau);
     }
    
    public ArrayList LayDS_MaLoaiPhong(String MaLoaiPhong, int ThangBC, int NamBC) throws Exception{
        return BaoCaoDoanhThu.LayDS_MaLoaiPhong(MaLoaiPhong, ThangBC, NamBC);
    }
}
